package com.afs.electronicforensics.adapter.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;

import com.afs.electronicforensics.activity.R;
import com.afs.electronicforensics.adapter.MyItemClickListener;


public class IVViewHolder extends RecyclerView.ViewHolder {

    public ImageView imageView;
    public TextView textView;
    public CardView cardView;

    public IVViewHolder(@NonNull View itemView,final MyItemClickListener myItemClickListener) {
        super(itemView);
        imageView=itemView.findViewById(R.id.image);
        textView=itemView.findViewById(R.id.text);
        cardView=itemView.findViewById(R.id.iv_view);
        itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                myItemClickListener.onItemClick(v,getAdapterPosition());
            }
        });
    }
}

